import request from '@/utils/request'


// 获取账号
export const getAccount = () => request.get('/system/config/getExamsAccount')
// 登录
export const login = (data) => request.post('/login', data)


// 获取题库
export const getQuestionsGroup = () => request.get('/plisa/group/questions-group')

// 获取练习试卷
export const getPracticeList = (id) => request.get(`/plisa/group/exam-papers/practice/${id}`)
 
// 获取考试试卷
export const getExamList = (id) => request.get(`/plisa/group/exam-papers/${id}`)

// 提交试卷
export const submitExam = (data) => request.post('/exams/examsRecord/exam/submit', data)

// 查询考试结果
export const getExamResult = (id) => request.get(`/exams/examsRecord/record/${id}`)
